<?php
/**
 * Created by PhpStorm.
 * User: Season
 * Date: 2018/6/14
 * Time: 22:25
 */

require_once 'temolate.class.php';

$baseDir = str_replace('\\','/',dirname(__FILE__));
$temp = new temolate($baseDir.'/',$baseDir.'/runtime/temp/');

$temp->assign('pagetitle','仿smarty模板引擎');
$temp->assign('test','test');

$temp->getSourceTemplate('index');
$temp->compileTemplate();
$temp->display();